Page({
  data: {
    result:[]
  },
  onLoad: function (options) {
    var that=this;
    wx.request({
      url: 'https://www.easy-mock.com/mock/5bab2979337915219188187c/time/artlist',
      data: {},
      header: {'content-type':'application/json'},
      method: 'GET',
      success: function(res) {
        that.setData({
          result:res.data
        })
        console.log(res.data)
      }
    });
  },
  onReady: function () {
    // 页面渲染完成
  },
  onShow: function () {
    // 页面显示
  },
  onHide: function () {
    // 页面隐藏
  },
  onUnload: function () {
    // 页面关闭
  }
})